
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserFriendRequest struct {

	Uid string `json:"uid" form:"uid"`

	FriendsUid string `json:"friends_uid" form:"friends_uid"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *UserFriendRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserFriendRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"friends_uid": "required",

		"add_time": "required",

	}
}

func (r *UserFriendRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserFriendRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserFriendRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
